import request from '@/utils/request'

// 水质设备故障-列表
const waterEquipmentFailureList = function (params = {}) {
  return request({
    url: `/zy-api/api/waterQuality/getWaterFaultList`,
    method: 'post',
    data: params,
  })
}

// 水质设备故障-响应 修改
const responseOperation = function (params = {}) {
  return request({
    url: `/zy-api/api/waterQuality/updWaterFault`,
    method: 'post',
    data: params,
  })
}

// 根据id查询水质设备故障-处理详情
const handlingDetails = function (params = {}) {
  return request({
    url: `/zy-api/api/waterQuality/getWaterFaultId`,
    method: 'post',
    data: params,
  })
}

// 水质设备故障-处理 保存
const processingOperation = function (params = {}) {
  return request({
    url: `/zy-api/api/waterQuality/insterWaterFault`,
    method: 'post',
    data: params,
  })
}

// 水质设备故障处理-查看处理记录
const processingRecord = function (params = {}) {
  return request({
    url: `/zy-api/api/waterQuality/getWaterFaultHistory`,
    method: 'post',
    data: params,
  })
}

export {
  waterEquipmentFailureList,
  responseOperation,
  handlingDetails,
  processingOperation,
  processingRecord
}